#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"
#include "Queue.h"
void Test01()
{
	ST s;
	STInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	STDataType x1 = StackTop(&s);
	printf("%d\n",x1);
	STPrint(&s);
	StackPop(&s);
	StackPop(&s);
	StackPop(&s);
	STPrint(&s);
	STDataType x2 = StackTop(&s);
	printf("%d\n", x2);

}

void Test02()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	//QueuePop(&q);
	int Front = QueueFront(&q);
	printf("%d\n", Front);
	int Back = QueueBack(&q);
	printf("%d\n", Back);
	int Size = QueueSize(&q);
	printf("%d\n", Size);
	QueueDestroy(&q);
}

int main()
{
	//Test01();
	Test02();
	return 0;
}